package ttOrder.dao;

import java.util.List;

import ttOrder.model.Dinnertable;

public interface DinnertableMapper {

	//查询全部餐桌
	public List<Dinnertable> selectAll();
	
	//查询全部空闲餐桌
	public List<Dinnertable> selectAllFreeTable();
	
	//根据Id查询餐桌
	public Dinnertable selectById(Integer id);
	
	//新增餐桌
	public void insert(Dinnertable dinnertable);
	
	//修改餐桌
	public void update(Dinnertable dinnertable);
	
	//删除餐桌
	public void deleteById(Integer id);

	//根据使用状态查询餐桌
	public List<Dinnertable> selectByTableStatus(Integer tableStatus);

	//用户选择某空闲餐桌后让该餐桌状态改为已满位
	public void editByTableId(Dinnertable dinnertable);

}
